# Copyright (c) 2007-2009 The PyAMF Project.
# See LICENSE for details.

import sys, os

sys.path.append(os.getcwd())

from twisted.application import internet, service
from server import MServeur

appPort = 8082
maxPeople=50
socketPolicy='socket-policy.xml'
timeout=15
#serveur_php='http://192.168.0.3/php/amfphp/services/admin_mserveur.php'
serveur_php='http://192.168.2.4/php/amfphp/services/admin_mserveur.php'

factory = MServeur(maxPeople,socketPolicy,serveur_php,timeout,appPort)

# Lancement de l'application
application = service.Application('Mserveur')
mserveur = internet.TCPServer(appPort, factory)
mserveur.setServiceParent(application)

